# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
    # create a thumbnail of the specified uri
    def OutputThumbNail(uri)
        begin
            '<img src="' + Page.cache_thumbnail(uri) + '" alt="Thumbnail image for ' + uri + '" />'
#        rescue
 #           ''
        end
    end

  def tag_links(tags)
    links = ""    
    tags.each do |tag|
      links << "<a href=\"/tags/#{tag.name}\">#{tag.name}</a> "
    end
    links 
  end

end
